package com.lxk.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 游戏订单
 * </p>
 *
 * @author JohnSoybean
 * @since 2020-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ConsumeOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 使用订单id
     */
    @TableId(value = "consume_order_id", type = IdType.AUTO)
    private Long consumeOrderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 设备名
     */
    private String deviceName;

    /**
     * 支付银币数
     */
    private Integer consumePrice;

    /**
     * 发球次数
     */
    private Integer consumeBall;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;


}
